M = 2146516019
L = 233333333


def ni_yuan(num):
    return pow(num, M - 2, M)


ans = 0
for i in range(1, L + 1):
    if i % 10000 == 0:
        print(i)
    ans ^= ni_yuan(i)
print("b")
print(ans)
